import pytest
from yuekao.run import Log,send_mail
from datetime import datetime
if __name__ == '__main__':
    time=datetime.now().strftime("%Y%m%d_%H%M%S")
    Log()
    pytest.main(["./data./TestCase.py",f"--html=tieba{time}.html"])
    send_mail([f"baiduwebtestlog{time}.txt","tieba.html"])